package com.luych.toolbox.common.feign.view.docker.service;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.List;

@ApiModel("环形图")
public class DockerStatDonutView {

    @ApiModelProperty("标签")
    private List<String> labels;
    @ApiModelProperty("数据集")
    private List<DataSet> datasets;

    public List<String> getLabels() {
        return labels;
    }

    public void setLabels(List<String> labels) {
        this.labels = labels;
    }

    public List<DataSet> getDatasets() {
        return datasets;
    }

    public void setDatasets(List<DataSet> datasets) {
        this.datasets = datasets;
    }

    @ApiModel("数据集")
    public static class DataSet {

        @ApiModelProperty("数据")
        private List<BigDecimal> data;
        @ApiModelProperty("颜色")
        private List<String> backgroundColor;

        public List<BigDecimal> getData() {
            return data;
        }

        public void setData(List<BigDecimal> data) {
            this.data = data;
        }

        public List<String> getBackgroundColor() {
            return backgroundColor;
        }

        public void setBackgroundColor(List<String> backgroundColor) {
            this.backgroundColor = backgroundColor;
        }
    }
}
